<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
                xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../flights/layui/css/layui.css" media="all">
</head>

<body  background="../../flights/img/7.jpg">

<div class="layui-tab ">
    <ul class="layui-tab-title layui-bg-cyan ">
        <li>查询航班</li>
        <li>订票信息</li>
        <li class="layui-col-md-offset8 layui-btn layui-btn-danger"><a href="out"> 安全退出</a></li>
    </ul>

    <div style="display: none;padding: 20px; background: #5FB878" id="saveOrUpdateDiv" >
        <form class="layui-form" action="/addzenjia"  method="get" lay-filter="dataFrm" id="dataFrm">
            <div class="layui-form-item">
                <label class="layui-form-label">出发时间:</label>
                <div class="layui-input-inline">
                    <input type="text" name="takeoffTime"  lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">飞行时间:</label>
                <div class="layui-input-inline">
                    <input type="text" name="flyingTime" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">出发地:</label>
                <div class="layui-input-inline">
                    <input type="text" name="startPlace" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">目的地:</label>
                <div class="layui-input-inline">
                    <input type="text" name="endPlace" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">余票:</label>
                <div class="layui-input-inline">
                    <input type="text" name="ticket" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">票价:</label>
                <div class="layui-input-inline">
                    <input type="text" name="price" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">航班号:</label>
                <div class="layui-input-inline">
                    <input type="text" name="flights" lay-verify="required" autocomplete="off" class="layui-input" >
                </div>
            </div>
            <div class="layui-form-item" >
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn layui-btn-normal layui-btn-md layui-icon layui-icon-release" lay-filter="doSubmit" >提交</button>
                    <button type="reset" class="layui-btn layui-btn-warm layui-btn-md layui-icon layui-icon-refresh" >重置</button>
                </div>
            </div>
        </form>
    </div>
    <div style="display: none;padding: 20px; background: #5FB878" id="saveOrUpdateDiv1" >
        <form class="layui-form" action="/updateFlight"  method="get" lay-filter="dataFrm1" id="dataFrm1">
            <div class="layui-form-item">
                <label class="layui-form-label">出发时间:</label>
                <div class="layui-input-inline">
                    <input type="text" name="takeoffTime"  lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">飞行时间:</label>
                <div class="layui-input-inline">
                    <input type="text" name="flyingTime" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">出发地:</label>
                <div class="layui-input-inline">
                    <input type="text" name="startPlace" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">目的地:</label>
                <div class="layui-input-inline">
                    <input type="text" name="endPlace" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">余票:</label>
                <div class="layui-input-inline">
                    <input type="text" name="ticket" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">票价:</label>
                <div class="layui-input-inline">
                    <input type="text" name="price" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">航班号:</label>
                <div class="layui-input-inline">
                    <input type="text" name="flights" lay-verify="required" autocomplete="off" class="layui-input" >
                </div>
            </div>
            <div class="layui-form-item" >
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn layui-btn-normal layui-btn-md layui-icon layui-icon-release" lay-filter="doSubmit" >提交</button>
                    <button type="reset" class="layui-btn layui-btn-warm layui-btn-md layui-icon layui-icon-refresh" >重置</button>
                </div>
            </div>
        </form>
    </div>

    <div class="layui-tab-content  ">
        <!-- 查询航班  -->
     <div class="layui-tab-item layui-show">
         <div class="layui-col-md-offset2" style="margin-top: 10px">
        <table class="layui-table" id="demo1"  lay-filter="demo1"></table>
         </div>
     </div>

        <!-- 订票信息  -->
        <div class="layui-tab-item">
            <div class=" layui-col-md-offset1" style="margin-top: 20px">
                <table class="layui-hide" lay-filter="demo2" id="demo2"></table>
            </div>
        </div>


    </div>

   </div>


<div style="display: none;" id="barDemo3">
    <button type="button" class="layui-btn layui-btn-sm" lay-event="add">删除过期订票</button>
</div>


<div style="display: none;" id="barDemo1">
    <button type="button" class="layui-btn layui-btn-sm"  lay-event="add">增加航班</button>
</div>
<div style="display: none;" id="barDemo2">
    <button type="button" class="layui-btn layui-btn-sm" lay-event="upd">修改航班</button>
    <button type="button" class="layui-btn layui-btn-sm" lay-event="del">删除航班</button>
</div>

<script src="../../flights/layui/layui.js"></script>
<!--查询航班-->
<script src="../../flights/js/admin.js"></script>

</body>
</html>